import Vue from 'vue'
import Router from 'vue-router'

Vue.use(Router)

export default new Router({
  routes: [
    // 管理员登陆
    {
      name: 'login',
      path: '/admin/login',
      component: () => import('../admin/login.vue')
    },
    // 新生宿舍情况表
    {
      name: 'dormInfo',
      path: '/admin/dormInfo',
      component: () => import('../admin/dorm-info.vue')
    },
    // 专业新生报到情况(chart)
    {
      name: 'reportChart',
      path: '/admin/reportChart',
      component: () => import('../admin/report-chart.vue')
    },
    // 院系新生报到情况(chart)
    {
      name: 'departmentChart',
      path: '/admin/departmentChart',
      component: () => import('../admin/department-chart.vue')
    },
    // 班级或详情查看
    {
      name: 'details',
      path: '/admin/details',
      component: () => import('../admin/details.vue')
    },
    //全校专业报道率排行
    {
      name: 'reportRateRank',
      path: '/admin/reportRateRank',
      component: () => import('../admin/reportRate-rank.vue')
    },
    // 电子注册
    {
      path: '/',
      redirect: '/students/register'
    },
    {
      name: 'register',
      path: '/students/register',
      component: () => import('../students/register.vue')
    },
    // 学校地图
    {
      name: 'map',
      path: '/students/stuMap',
      component: () => import('../students/stu-map.vue')
    },
    // 确认信息
    {
      name: 'confirmInfo',
      path: '/students/confirmInfo',
      component: () => import('../students/confirm-info.vue')
    },
    // 完善个人信息
    {
      name: 'setInfo',
      path: '/students/setInfo',
      component: () => import('../students/set-info.vue')
    },
    // 我的信息
    {
      name: 'myInfo',
      path: '/students/myInfo',
      component: () => import('../students/my-info.vue')
    },
    // 注册成功
    {
      name: 'successReg',
      path: '/students/successReg',
      component: () => import('../students/success-reg.vue')
    },
    // 专业查看（辅导员）
    {
      name: 'majorInfo',
      path: '/instructor/majorInfo',
      component: () => import('../instructor/major-info.vue')
    },
    // 班级查看（辅导员）
    {
      name: 'classInfo',
      path: '/instructor/classInfo',
      component: () => import('../instructor/class-info.vue')
    },
    // 宿舍详情（辅导员）
    {
      name: 'dorm-info',
      path: '/instructor/dormInfo',
      component: () => import('../instructor/dorm-info.vue')
    },
    // 宿舍人员名单（辅导员）
    {
      name: 'dorm-stu',
      path: '/instructor/dormStu',
      component: () => import('../instructor/dorm-stu.vue')
    },
    // 确认注册
    {
      name: 'confirmRegt',
      path: '/instructor/confirmRegt',
      component: () => import('../instructor/confirm-regt.vue')
    },
    {
      name: 'regtInfo',
      path: '/instructor/regtInfo',
      component: () => import('../instructor/regt-info.vue')
    },
    // 一键复位
    {
      name: 'reset',
      path: '/reset',
      component: () => import('../reset/reset.vue')
    },
    // 数据展示页面
    {
      name: 'showData',
      path: '/showData',
      component: () => import('../showData/show-data.vue')
    },
    // 数据展示页面(白天)
    {
      name: 'showData2',
      path: '/showData2',
      component: () => import('../showData/show-data2.vue')
    },
    // 数据展示页面(黑夜)
    {
      name: 'showData3',
      path: '/showData3',
      component: () => import('../showData/show-data3.vue')
    },
    // 数据展示页面(第四版)
    {
      name: 'showData4',
      path: '/showData4',
      component: () => import('../showData/show-data4.vue')
    },
    // 数据展示页面(第五版)
    {
      name: 'showData5',
      path: '/showData5',
      component: () => import('../showData/show-data5.vue')
    },
    // 数据展示页面(第六版)
    {
      name: 'showData6',
      path: '/showData6',
      component: () => import('../showData/show-data6.vue')
    },
    // 数据展示页面(第七版)
    {
      name: 'showData7',
      path: '/showData7',
      component: () => import('../showData/show-data7.vue')
    },
    {
      name: 'showData8',
      path: '/showData8',
      component: () => import('../showData/show-data8.vue')
    },
    // 数据展示页面(手机端)
    {
      name: 'showMobile',
      path: '/showMobile',
      component: () => import('../showData/show-mobile.vue')
    }
  ]
})
